<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子样式</title>
    <style>
        body {
            height: 1000px;
        }
        
        div {
            height: 300px;
            background-image: url(./IMG_20191207_171320.jpg);
            background-size: 100% 100%;
            background-attachment: fixed;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>